<tc_include file="Public:header" />
<link rel="stylesheet" media="screen" href="./themes/simplebootx/public/css/fileinput.css" />
  <div id="content-container" class="container">
      <if condition="empty($avatar)">
       <div class="alert alert-warning alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <strong>您还没有头像</strong>。拥有一个独有的头像，老师和同学们能更容易关注到你哦～～ <a href="{:u('user/center/pic')}"" class="alert-link" target="_blank">点击设置</a>
	  </div>
	  <else/>
	    <if condition="empty($user['user_nicename'])">
	     <div class="alert alert-warning alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <strong>您还没设置昵称</strong>。请到个人设置里面设置～～ <a href="{:u('user/center/setting')}" class="alert-link" target="_blank">点击设置</a>
         </div>
        </if>
	 </if>
     <div class="row row-3-9">
        <div class="col-md-3">
           <div class="sidenav">
            <ul class="list-group">
               <li class="list-group-heading"><a href="{:u('Teacher/Center/index')}">我的课程</a></li>
               <li class="list-group-heading">课程管理</li>
               <li class="list-group-item"><a href="{:u('Teacher/Center/sectionlist',array('cs_id'=>$cs_id))}">课时管理</a></li>
               <li class="list-group-item"><a href="{:u('Teacher/Center/addsection',array('cs_id'=>$cs_id))}">添加课时</a></li>
               <li class="list-group-item active" ><a href="{:u('Teacher/Center/material',array('cs_id'=>$cs_id))}">资料管理</a></li>
               <li class="list-group-item"><a href="{:u('Teacher/Center/xueyuanlist',array('cs_id'=>$cs_id))}">学员列表</a></li>
              <li class="list-group-item"><a href="{:u('Teacher/Center/pinglun',array('cs_id'=>$cs_id))}">评论列表</a></li>
            </ul>
          </div>
        </div>
        <div class="col-md-9">	
          <div class="panel panel-default panel-col">
	        <div class="panel-heading">添加资料《{$cs_name}》</div>
	          <div class="panel-body">
  		  	     <form id="user-profile-form" class="form-horizontal js-ajax-form" method="post" action="{:U('Teacher/Center/materialadd_post')}">
					      <div class="form-group">
						     <label class="col-md-2 control-label">资料标题</label>
						        <div class="col-md-7 controls">
						           <input type="hidden" name="cs_id" value="{$cs_id}">
                                    <input type="hidden" name="sc_id" value="{$sc_id}">
							       <input type="text" name="name" id="name" class="form-control">
						        </div>
					      </div>
					      				      
					      <div class="form-group">
						        <label class="col-md-2 control-label">下载地址</label>
						        <div class="col-md-7 controls">
							       <input type="text" name="url" id="url" value="{$_SESSION['access_url']}" class="form-control" style="width:370px;float:left;margin-right:20px;">
								   <a class="btn btn-primary " href="{:u('Teacher/Center/document2')}" data-toggle="modal" data-target="#myModal">资料库</a>
						        </div>
					      </div>
					      
					     
					       <div class="row">
						       <div class="col-md-7 col-md-offset-2">
							      <button id="profile-save-btn"  type="submit" class="btn btn-primary js-ajax-submit">添加</button>
						       </div>
					       </div>
			           </form>

                   
		      </div>
	        </div>
         </div>
     </div>
   </div> 
   <div class="modal fade" id="myModal" tabindex="-1" role="dialog"  aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-body">
          
         </div>
      </div>
   </div>
</div>  
<tc_include file="Public:scripts" />       
<tc_include file="Public:footer" />